package com.woniu.controller;

import com.woniu.entity.Result;
import com.woniu.entity.dto.SectionStatisticsDTO;
import com.woniu.pojo.Order;
import com.woniu.service.OrderService;
import com.woniu.service.PlatformInformationService;
import com.woniu.service.RoadService;
import com.woniu.service.SectionStatisticsService;
import com.woniu.utils.BaseController;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sectionstatistics")
public class SectionStatisticsController extends BaseController {
    @Autowired
    private SectionStatisticsService SectionStatisticsService;
    @Autowired
    private StringRedisTemplate stringRedisTemplate;
//    @ApiOperation("根据路段ID查询")
//    @GetMapping("/{roadId}")
//    public Result getByRoadId(@PathVariable String roadId){
//        SectionStatisticsDTO sectionStatisticsDTO = sectionStatisticsService.getByRoadId(roadId);
//        return toDataResult(sectionStatisticsDTO);
//    }
}
